import java.io.*;

public class three {
    public static void main(String[] args) throws IOException {
        File file_1 = new File("E:\\1.jpeg");
        File file_2 = new File("E:\\web\\1.jpeg");
        file_2.createNewFile();

        byte[] bytes = new byte[1024*100];

        InputStream inputStream = null;
        OutputStream outputStream = null;
        try {
            inputStream = new FileInputStream(file_1);
            inputStream.read(bytes);
            outputStream = new FileOutputStream(file_2);
            outputStream.write(bytes);

        }catch (Exception e){

        }finally {
            if (inputStream != null) inputStream.close();
            if (outputStream != null) outputStream.close();
        }

    }
}
